package com.enation.app.javashop.api.client;


import com.enation.app.javashop.model.pagedata.HotKeyword;
import com.enation.app.javashop.service.pagedata.HotKeywordManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @author fk
 * @version v2.0
 * @Description:
 * @date 2020/12/1 9:46
 * @since v7.0.0
 */
@RestController
@RequestMapping("/client/hot-keyword")
@ApiIgnore
public class HotkeywordClientController {


    @Autowired
    private HotKeywordManager hotKeywordManager;

    @GetMapping
    public List<HotKeyword> listByNum(@RequestParam("num") Integer num) {
        return hotKeywordManager.listByNum(num);
    }

}
